import * as ActionTypes from '../../action/types';
import { TJobListItem } from '../../../types';

export const jobListReaducer = (state: TJobListItem[] = [], action: any) => {
  const { type, payload } = action;
  switch (type) {
    case ActionTypes.RESOLVE_GET_JOBLIST:
      return payload;
    case ActionTypes.EDIT_SET_JOBLIST:
      return payload;
    default:
      return state;
  }
};
export default jobListReaducer;
